package com.ken.apollo.commons.exception;

import com.ken.apollo.commons.result.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public class ServiceException extends RuntimeException{
    private Integer code;
    private String message;

    public ServiceException(String message) {
        this.code = ResultCode.FAIL.getCode();
        this.message = message;
    }
}
